package com.mapbased.sfw.binding;

import org.dom4j.Element;

import com.mapbased.sfw.component.Xmlable;
import com.mapbased.sfw.model.LoadContext;
import com.mapbased.sfw.model.RenderContext;
import com.mapbased.sfw.model.Renderable;

public abstract class Binding implements Renderable, Xmlable {

	public abstract Object getValue(RenderContext rc);

	final public void render(RenderContext rc) {
		rc.write(String.valueOf( this.getValue(rc)));
	}

	final public void parseXml(Element ele, LoadContext lc) {

	}

	public String getTypeName() {
		return "Binding";
	}

}
